<?php defined('SYSPATH') OR die('No direct access allowed.');?>
<h2>Информация о пользователе <?=$userdata['username']?></h2>
<form action="<?=url::base(FALSE)?>auth/change_profile" id="login" method="post">
<div id="errors"><?foreach($errors as $key=>$val):?><p><?=$key.":".$val?></p><? endforeach?></div>
<fieldset>
  <legend>Личные данные</legend>
  <ol>
    <li>
      <label for="first_name">Фамилия </label>
      <input type="text" name="first_name" id="first_name" size="20" maxlength="127" value="<?=$userdata['first_name']?>" />
    </li>
    <li>
      <label for="last_name">Имя </label>
      <input type="text" name="last_name" id="last_name" size="20" maxlength="127" value="<?=$userdata['last_name']?>" />
    </li>
    <li>
      <label for="middle_name">Отчество </label>
      <input type="text" name="middle_name" id="middle_name" size="20" maxlength="127" value="<?=$userdata['middle_name']?>" />
    </li>
    <li>
      <label for="city">Город </label>
      <input type="text" name="city" id="city" size="20" maxlength="127" value="<?=$userdata['city']?>" />
    </li>
  </ol>
</fieldset>
<fieldset>
  <legend>Контакты</legend>
  <ol>
    <li>
      <label for="website">Сайт </label>
      <input type="text" name="website" id="website" value="<?=$userdata['website']?>" size="20" maxlength="127" />
    </li>
    <li>
      <label for="icq">ICQ </label>
      <input type="text" name="icq" id="icq" value="<?=$userdata['icq']?>" size="20" maxlength="10" />
    </li>
    <li>
      <label for="jabber">Jabber </label>
      <input type="text" name="jabber" id="jabber" value="<?=$userdata['jabber']?>" size="20" maxlength="127" />
    </li>
  </ol>
</fieldset>
<fieldset>
  <legend>Дополнительно</legend>
  <ol>
    <li>
      <label for="interests">Интересуюсь </label>
      <input type="text" name="interests" id="interests" value="<?=$userdata['interests']?>" size="20" maxlength="127" />
    </li>
    <li>
      <label for="about">О себе </label>
      <textarea name="about" id="about" rows="3" ><?=$userdata['about']?></textarea>
    </li>
    <li><input type="submit" value="Сохранить" /></li>
  </ol>
</fieldset>
</form>